package cn.com.generaldata.os.pojo;

import java.util.HashSet;
import java.util.Set;

import com.sun.xml.internal.bind.CycleRecoverable;

public class Authority implements java.io.Serializable, CycleRecoverable {

	private String id = null;

	private String authorName = null;

	private Set<AuthorFunc> authorFunc = new HashSet<AuthorFunc>(0);

	public Set<AuthorFunc> getAuthorFunc() {
		return authorFunc;
	}

	public void setAuthorFunc(Set<AuthorFunc> authorFunc) {
		this.authorFunc = authorFunc;
	}

	public String getId() {
		return id;
	}

	public Authority() {
		super();
	}

	@Override
	public Object onCycleDetected(Context arg0) {
		Industry temp = new Industry();
		temp.setId(id);
		return temp;
	}

	public Authority(String id, String authorName, Set<AuthorFunc> authorFunc) {
		super();
		this.id = id;
		this.authorName = authorName;
		this.authorFunc = authorFunc;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

}
